<?php
/*
Template Name: Login Page
*/

get_header(); // Loads the header.php template. ?>		
		
		<div id="main" class="clearfix">	
			
			<div class="center clearfix">		
				
				<div id="content" class="clearfix">
					
					<?php if ( have_posts() ) : ?>
						<?php while ( have_posts() ) : the_post(); ?>					

						   <div class="hentry clearfix">	
								<div class="entry-meta clearfix">
				
									<div class="left-info">										
										<span class="comments-link">											
											<a href="<?php echo get_permalink();?>" > </a>											
										</span>							
									</div>							
							
								</div>	<!-- .entry-meta -->								
						
								<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>		
								
								<div class="entry-content">
									<?php if(!is_single() && !is_page()) the_excerpt(); else the_content(); ?>
									<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
									<?php 
										if(is_user_logged_in())
											echo '<h3 class="logged-info">' . __('You are already logged in!', hybrid_get_textdomain()) . '</h3>';			
										else {
											wp_login_form(); ?>
											<p class='registration'> <a href='<?php echo site_url('wp-login.php?action=register', 'login_post'); ?>'><?php _e('Register today!', hybrid_get_textdomain()); ?></a></p>
											<p id="loginnav"><a href="<?php echo get_option('home'); ?>/wp-login.php?action=lostpassword" title="Password Lost and Found"><?php _e('Lost your password?', hybrid_get_textdomain()); ?> </a></p>
									<?php } ?>			
								</div><!-- .entry-content -->
						
								
							</div><!-- .hentry -->		
							
						<?php endwhile; ?>					
					<?php endif; ?>
					
							
				
				</div> <!-- #content -->
				<?php get_sidebar( 'page' );  ?>
			</div><!-- #center -->
		</div><!-- #main -->	
	
<?php get_footer(); // Loads the footer.php template. ?>		